From: Owen W. Taylor Date: Tue, 7 Feb 2012 18:04:50 +0000 (-0500) Subject: ShellApp: Fix warning with call to g_strv_length() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7096 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=46caf6d673f2227ab3df2d4393ba0125c6447104;p=gnome-shell.git ShellApp: Fix warning with call to g_strv_length() There is no implicit cast from const char * const * to char **. --- diff --git a/src/shell-app.c b/src/shell-app.c index 31d138534..81c761b50 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -1322,7 +1322,7 @@ shell_app_init_search_data (ShellApp *app) { int i; - app->casefolded_keywords = g_new0 (char*, g_strv_length (keywords) + 1); + app->casefolded_keywords = g_new0 (char*, g_strv_length ((char **)keywords) + 1); i = 0; while (keywords[i])